home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Winzipper
/
Winzipper_ISO.iso
/
nt4.0 server
/
DRVLIB.NIC
/
OCE3XM
/
OEMSETUP.INF
< prev
Wrap
INI File
|
1996-07-31
|
44KB
|
1,335 lines
;***********************************************************************
;
; OEMSETUP.INF
;
; Olicom MCA/ISA Ethernet 10/100 Adapter Driver Setup File.
;
;***********************************************************************
;-----------------------------------------------------------------------
; OPTION TYPE
; -----------
; This identifies the Option type we are dealing with. The different
; possible types are:
;
; COMPUTER, DISPLAY, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
;
; Types specific to networking:
;
; NetAdapter, a netcard / adapter combination or just a netcard
; NetDriver, just a netcard driver
; NetTransport, a complete NDIS-compliant TDI transport stack
; NetService, an NT networking service
; NetWork, a complete network ensemble.
; NetProvider a complete network which supports NT MPR protocol
;-----------------------------------------------------------------------
[Identification]
OptionType = NetAdapter
;-----------------------------------------------------------------------
; PlatformsSupported
; ------------------
; This identifies the platforms supported by the adapter card.
; Possible types are:
;
; ISA and EISA
;-----------------------------------------------------------------------
[PlatformsSupported]
ISA
EISA
MCA
[LanguagesSupported]
ENG
;-----------------------------------------------------------------------
; OPTION LIST
; -----------
; This section lists the OEM Option key names. These keys are locale
; independent and used to represent the option in a locale independent
; manner.
;
;-----------------------------------------------------------------------
[Options]
OCE3XM
; OCE3XMMC
[OptionsTextENG]
OCE3XM = "Olicom Ethernet ISA 10/100 Adapter"
; OCE3XMMC = "Olicom Ethernet MCA 10/100 Adapter"
[IOBaseAddrChoices]
IOBase_1 = "Auto detect",0
IOBase_2 = "200h",512
IOBase_3 = "210h",528
IOBase_4 = "220h",544
IOBase_5 = "230h",560
IOBase_6 = "240h",576
IOBase_7 = "250h",592
IOBase_8 = "260h",608
IOBase_9 = "270h",624
IOBase_10 = "280h",640
IOBase_11 = "290h",656
IOBase_12 = "2A0h",672
IOBase_13 = "2B0h",698
IOBase_14 = "2C0h",714
IOBase_15 = "2D0h",730
IOBase_16 = "2E0h",746
IOBase_17 = "2F0h",752
IOBase_18 = "300h",768
IOBase_19 = "310h",784
IOBase_20 = "320h",800
IOBase_21 = "330h",816
IOBase_22 = "340h",832
IOBase_23 = "350h",848
IOBase_24 = "360h",864
IOBase_25 = "370h",880
IOBase_26 = "380h",896
IOBase_27 = "390h",912
IOBase_28 = "3A0h",928
IOBase_29 = "3B0h",944
IOBase_30 = "3C0h",960
IOBase_31 = "3D0h",976
IOBase_30 = "3E0h",992
[BusNumberChoices]
BusNo_1 = "0",0
BusNo_2 = "1",1
BusNo_3 = "2",2
BusNo_4 = "3",3
BusNo_5 = "4",4
BusNo_6 = "5",5
BusNo_7 = "6",6
BusNo_8 = "7",7
[SpeedChoices]
Speed_1 = 1,0,"&Auto"
Speed_2 = 2,10,"1&0 Mbps"
Speed_3 = 3,100,"&100 Mbps"
;-----------------------------------------------------------------------
; Constants for use with dialogs
;-----------------------------------------------------------------------
[FileConstants]
AdapterServiceName = ""
UtilityInf = "UTILITY.INF"
subroutineinf = "SUBROUTN.INF"
SoftwareType = "driver"
Exit_Code = 0
DialogDllName = "oce3xm.dll"
HelpfileName = "oce3xm.hlp"
NetEventDLL = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\Drivers\Oc2xem.sys"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
OC2335_1BYTE = 71
OC2335_2BYTE = 100
NETCARD_ID = 25671
Manufacturer = "Olicom"
ProductMajorVersion = "3"
ProductMinorVersion = "0"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductSoftwareName = "OCE3XM"
ProductSoftwareTitle = "Olicom Ethernet MCA/ISA 10/100 Adapter Driver"
ProductSoftwareDescription = "Olicom Ethernet MCA/ISA 10/100 Adapter Driver"
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\oce3xm.sys"
NetRuleSoftwareType = "oce3xmSys ndisDriver oce3xmDriver"
NetRuleSoftwareUse = $(SoftwareType)
NetRuleSoftwareBindForm = """Oce3xMSys"" yes no container"
NetRuleSoftwareClass = {"oce3xmDriver basic"}
NetRuleSoftwareBindable = {"oce3xmDriver oce3xmAdapter non exclusive 100"}
ProductHardwareName = "OCE3XM"
ProductHardwareOCE3XMTitle = "Olicom Ethernet ISA 10/100 Adapter"
ProductHardwareOCE3XMMCTitle = "Olicom Ethernet MCA 10/100 Adapter"
ProductHardwareTitle = $(ProductHardware$(Option)Title)
ProductHardwareOCE3XMDescription = "Olicom Ethernet ISA 10/100 Adapter"
ProductHardwareOCE3XMMCDescription = "Olicom Ethernet MCA 10/100 Adapter"
ProductHardwareDescription = $(ProductHardware$(Option)Description)
NetRuleHardwareType = "oce3xm oce3xmAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass = {"oce3xmAdapter basic"}
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
[GeneralConstants]
from = ""
to = ""
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct = ""
KeyParameters = ""
TRUE = 1
FALSE = 0
NoTitle = 0
ExitState = "Active"
OldVersionExisted = $(FALSE)
DriverPath = $(!STF_NTPATH)\drivers
[FileConstantsENG]
ProCaption = "Windows NT Setup"
ProCancel = "Cancel"
ProCancelMsg = "Windows NT Networking is not correctly installed. "+
"Are you sure you want to cancel copying files?"
ProCancelCap = "Network Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
CANNOT_FIND_ANY_CARD = "Network card is not present in the system"
OCE3XMFunctionTitle = "Olicom Ethernet ISA 10/100 Adapter Setup"
OCE3XMMCFunctionTitle = "Olicom Ethernet MCA 10/100 Adapter Setup"
FunctionTitle = $($(Option)FunctionTitle)
IOBaseAddrList = ^(IOBaseAddrChoices, 1)
IOBaseAddrValues = ^(IOBaseAddrChoices, 2)
BusNoList = ^(BusNumberChoices, 1)
BusNoValues = ^(BusNumberChoices, 2)
SpeedList = ^(SpeedChoices, 1)
SpeedValues = ^(SpeedChoices, 2)
SpeedLabels = ^(SpeedChoices, 3)
IOBaseDefault = 1
BusNoDefault = 1
SpeedDefault = 1
DuplexDefault = 4
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
ContextMinimumID = 6000
ContextContentsID = 6000
ContextMaximumID = 6020
[date]
Now = {} ? $(!LIBHANDLE) GetSystemDate
[AskSourceDlgText]
OCE3XMDlgText = "Please enter the full path of the Olicom Ethernet ISA 10/100 "+
"Adapter driver setup files. Then choose Continue."
OCE3XMMCDlgText = "Please enter the full path of the Olicom Ethernet MCA 10/100 "+
"Adapter driver setup files. Then choose Continue."
DlgText = $($(Option)DlgText)
;-----------------------------------------------------------------------
; ADAPTER PARAMETER DIALOG (ISA)
; ------------------------------
; This section sets up the adapter parameter dialog. All textstrings
; presented in this dialog are defined here.
;
;-----------------------------------------------------------------------
[AdapterParameterDlgENG]
DlgType = "RadioCombination"
DlgTemplate = "OCE3DLG"
Caption = $(FunctionTitle)
DlgText = "Please select values for the following fields:"
Combo1Label = "&I/O Base Address:"
Combo2Label = "&Bus Number:"
Radio1Label = "&Speed"
Radio1 = *($(SpeedLabels),1)
Radio2 = *($(SpeedLabels),2)
Radio3 = *($(SpeedLabels),3)
Radio2Label = "&Duplex"
Radio4 = "A&uto"
Radio5 = "Ha&lf"
Radio6 = "&Full"
Edit1Label = "&Network Address:"
Combo1List = $(IOBaseAddrList)
Combo1Out = $(IOBaseAddrIndex)
Combo2List = $(BusNoList)
Combo2Out = $(BusNoIndex)
ComboListItemsIn = {Combo1List, Combo2List}
ComboListItemsOut = {Combo1Out, Combo2Out}
EditTextLim = 17
EditTextIn = $(NetworkAddress)
RadioOptionGreyed = {}
CBOptionsGreyed = {}
NotifyFields = {NO, NO, NO, NO, NO}
HelpContext = $(ContextContentsID)
;-----------------------------------------------------------------------
; ADAPTER PARAMETER DIALOG (MCA)
; ------------------------------
; This section sets up the adapter parameter dialog. All textstrings
; presented in this dialog are defined here.
;
;-----------------------------------------------------------------------
[AdapterMCAParameterDlgENG]
DlgType = "RadioCombination"
DlgTemplate = "OCE3DLGMC"
Caption = $(FunctionTitle)
DlgText = "Please select values for the following fields:"
Combo1Label = "&I/O Base Address:"
Combo2Label = "&Bus Number:"
Radio1Label = "&Speed"
Radio1 = *($(SpeedLabels),1)
Radio2 = *($(SpeedLabels),2)
Radio3 = *($(SpeedLabels),3)
Radio2Label = "&Duplex"
Radio4 = "A&uto"
Radio5 = "Ha&lf"
Radio6 = "&Full"
Edit1Label = "&Network Address:"
Combo1List = $(IOBaseAddrList)
Combo1Out = $(IOBaseAddrIndex)
Combo2List = $(BusNoList)
Combo2Out = $(BusNoIndex)
ComboListItemsIn = {Combo1List, Combo2List}
ComboListItemsOut = {Combo1Out, Combo2Out}
EditTextLim = 17
EditTextIn = $(NetworkAddress)
RadioOptionGreyed = {}
CBOptionsGreyed = {}
NotifyFields = {NO, NO, NO, NO, NO}
HelpContext = $(ContextContentsID)
;---------------------------------------------------------------------------
; 1. Identify
;
; DESCRIPTION: To verify that this INF deals with the same type of options
; as we are choosing currently.
;
; INPUT: None
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL
; $($R1): Option Type (COMPUTER ...)
; $($R2): Diskette description
;---------------------------------------------------------------------------
[Identify]
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
;------------------------------------------------------------------------
; 2. ReturnOptions:
;
; DESCRIPTION: To return the option list supported by this INF and the
; localised text list representing the options.
;
;
; INPUT: $($0): Language used. ( ENG | FRN | ... )
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE
; STATUS_FAILED
; STATUS_NOTSUPPORTED
;
; $($R1): Option List
; $($R2): Option Text List
;------------------------------------------------------------------------
[ReturnOptions]
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
ifstr(i) $($1) == ""
goto returnoptions
endif
set PlatformList = ^(PlatformsSupported, 1)
Ifcontains(i) $($1) in $(PlatformList)
goto returnoptions
else
set Status = STATUS_NOTSUPPORTED
goto finish_ReturnOptions
endif
Else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
Endif
returnoptions = +
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
;------------------------------------------------------------------------
;
; InstallOption:
;
; This section is shelled to by main installation processing
; or by NCPASHEL.INF during reconfig, removal, update, etc.
;
;
; FUNCTION: To copy files representing Options
; To configure the installed option
; To update the registry for the installed option
;
; INPUT: $($0): Language to use
; $($1): OptionID to install
; $($2): SourceDirectory
; $($3): AddCopy (YES | NO)
; $($4): DoCopy (YES | NO)
; $($5): DoConfig (YES | NO)
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE |
; STATUS_USERCANCEL |
; STATUS_FAILED
;
;------------------------------------------------------------------------
[InstallOption]
StartWait
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
Debug-Output "STF_CWDDIR is: "$(!STF_CWDDIR)
Debug-Output "STF_LANGUAGE is: "$(!STF_LANGUAGE)
set-subst LF = "\n"
read-syms GeneralConstants
read-syms FileConstants
read-syms DialogConstants$(!STF_LANGUAGE)
ifstr(i) $(!NTN_Origination) == "NCPA"
set Continue = "OK"
endif
read-syms FileConstants$(!STF_LANGUAGE)
detect date
set-title $(FunctionTitle)
set to = Begin
set from = Begin
set CommonStatus = STATUS_SUCCESSFUL
SetHelpFile $(HelpfileName) $(ContextMinimumID) $(ContextMaximumID)
EndWait
Begin = +
Ifstr(i) $(!NTN_InstallMode) == deinstall
set StartLabel = removeadapter
else-Ifstr(i) $(!NTN_InstallMode) == Update
set StartLabel = UpgradeSoftware
else-Ifstr(i) $(!NTN_InstallMode) == bind
set StartLabel = bindingadapter
else-Ifstr(i) $(!NTN_InstallMode) == configure
set StartLabel = configureadapter
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
Debug-Output "Cannot configure the driver software."
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
set from = end
set to = end
goto nonfatalinfo
endif
else
set StartLabel = installadapter
set OEM_ABANDON_OPTIONS = {}
set OEM_ABANDON_SOFTWARE = FALSE
set OEM_ABANDON_ON = TRUE
endif
set IOBaseAddrIndex = *($(IOBaseAddrList), $(IOBaseDefault))
set BusNoIndex = *($(BusNoList), $(BusNoDefault))
set SpeedIndex = *($(SpeedList), $(SpeedDefault))
set NetworkAddress = *($(EditTextOut), 1)
set RadioIn = { $(SpeedIndex), $(DuplexDefault) }
set Duplex = "Auto"
Shell "" DebugConfiguration "After parameter querying"
; Shell $(UtilityInf), GetBusTypeNum
; set BusTypeNum = $($R1)
; ifint $($ShellCode) != $(!SHELL_CODE_OK)
; Debug-Output "ShellCode error."
; goto ShellCodeError
; endif
Set from = $(fatal)
Set to = $(fatal)
Goto $(StartLabel)
;-----------------------------------------------
; Installation Section
;-----------------------------------------------
;
; Get the current values of all the parameters
;
installadapter = +
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
CloseRegKey $(KeyProduct)
ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
else
Shell $(UtilityInf), CardExistedDlg
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
ifstr(i) $($R1) != "OK"
goto end
endif
set OldVersionExisted = $(TRUE)
endif
endif
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto ShellCodeError
Else-Ifstr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
install "Install-Dll"
Goto adapteroptions
;-----------------------------------------------
; Configuration Section
;-----------------------------------------------
;
; Get the current values of all the parameters
;
configureadapter = +
Ifstr(i) $(KeyProduct) == $(KeyNull)
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component product key"
goto fatalregistry
Else
GetRegValue $(SoftwareKey), "ServiceName", ServiceNameList
set AdapterServiceName = *($(ServiceNameList),4)
set AdapterName = $(AdapterServiceName)
CloseRegKey $(SoftwareKey)
Endif
Endif
Debug-Output "INF: Shelling to FindService"
Shell $(UtilityInf) FindService, $(KeyProduct)
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "INF: FindService shell failure"
Goto ShellCodeError
Endif
Ifstr(i) $($R0) != NO_ERROR
Debug-Output "INF: FindService Shell error: "$($R0)
Goto fatalregistry
endif
Set KeyParameters = $($R2)
CloseRegKey $($R1)
Ifstr $(KeyParameters) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component service"
goto fatalregistry
endif
set OldVersionExisted = $(TRUE)
set ValueName = ""
set ValueData = ""
set ValueStr = ""
set ValueList = {}
EnumRegValue $(KeyParameters) ValueList
ForListDo $(ValueList)
set ValueItem = $($)
set ValueName = *($(ValueItem),1)
set ValueData = *($(ValueItem),4)
ifstr(i) $(ValueName) == "IoBase"
set IOBaseAddrValue = $(ValueData)
else-ifstr(i) $(ValueName) == "BusNumber"
set BusNoValue = $(ValueData)
else-ifstr(i) $(ValueName) == "NetworkAddress"
set NetworkAddress = $(ValueData)
else-ifstr(i) $(ValueName) == "Speed"
set SpeedValue = $(ValueData)
else-ifstr(i) $(ValueName) == "Duplex"
set DuplexValue = $(ValueData)
endif
EndForListDo
;
; Combo-lists and radio-buttons use a special list of parameter-names
; when dialogs are executed. The following section converts the actual
; values into the corresponding names (indexes). If a value is undefined,
; the first entry in the index-list is used.
;
set IOBaseAddrIndex = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrValue)))
ifstr(i) $(IOBaseAddrIndex) == ""
set IOBaseAddrIndex = *($(IOBaseAddrList), 1)
endif
set BusNoIndex = *($(BusNoList), ~($(BusNoValues),$(BusNoValue)))
ifstr(i) $(BusNoIndex) == ""
set BusNoIndex = *($(BusNoList), 1)
endif
set SpeedIndex = *($(SpeedList), ~($(SpeedValues),$(SpeedValue)))
ifstr(i) $(SpeedIndex) == ""
set SpeedIndex = *($(SpeedList), 1)
endif
ifstr(i) $(DuplexValue) == "Auto"
set Rad2 = 4
else-ifstr(i) $(DuplexValue) == "Half"
set Rad2 = 5
else
set Rad2 = 6
endif
set RadioIn = {$(SpeedIndex), $(Rad2) }
;
; This section runs the dialogs. From the main dialog (adapter parameter
; setup) it is possible to enter the PCMCIA dialog if requested. When
; exiting the PCMCIA dialog the user is returned to the main dialog.
;
adapteroptions = +
set from = adapteroptions
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
goto unattended
endif
set OldNetAddress = $(NetworkAddress)
;
; Load DLL containing dialogs and verification routines
;
LoadLibrary "Olicom Ethernet Driver Disk" $(DialogDllName) DialogHandle
adapteroptions1 = +
;
; Read main dialog setup and show dialog
;
ifstr(i) $(Option) == "OCE3XM"
read-syms AdapterParameterDlg$(!STF_LANGUAGE)
else
read-syms AdapterMCAParameterDlg$(!STF_LANGUAGE)
endif
ui start "InputDlg" $(DialogHandle)
ui pop 1
;
; Save new settings because this dialog might be called again.
; If CANCEL was pressed these values will not be used
;
ifstr(i) $(Option) == "OCE3XM"
set IOBaseAddrIndex = $(Combo1Out)
set BusNoIndex = $(Combo2Out)
endif
set SpeedIndex = *($(RadioOut),1)
IfContains "4" IN $(RadioOut)
set DuplexValue = "Auto"
else-IfContains "5" IN $(RadioOut)
set DuplexValue = "Half"
else-IfContains "6" IN $(RadioOut)
set DuplexValue = "Full"
endif
set NetworkAddress = *($(EditTextOut),1)
ifstr(i) $(DLGEVENT) == "CONTINUE"
;
; parameters have already been stored at this stage
;
goto nextstep
else-ifstr(i) $(DLGEVENT) == "EXIT"
set CommonStatus = STATUS_USERCANCEL
Debug-Output "Action: exit. Bye."
FreeLibrary $(DialogHandle)
goto end
else
Debug-Output "Action: unknown: "$(DLGEVENT)
FreeLibrary $(DialogHandle)
goto end
endif
nextstep =+
ifstr $(NetworkAddress) != ""
;
; If network address has been entered then verify that it is a
; valid address (not a multicast or broadcast address)
;
set FLibraryErrCtl = 1
LibraryProcedure DlgResult $(DialogHandle) VerifyEthAddress $(NetworkAddress)
set FLibraryErrCtl = 0
ifstr $(DlgResult) != "STATUS_SUCCESS"
FreeLibrary $(DialogHandle)
set Error = $(DlgResult)
goto nonfatal
endif
endif
FreeLibrary $(DialogHandle)
unattended =+
;
; For MCA adapters we have utility functions to detect the presence
; of these adapters based on the adapter ID register
;
ifstr(i) $(Option) == "OCE3XMMC"
Shell $(UtilityInf), MCAFindBus, $(OC2335_1BYTE), $(OC2335_2BYTE)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto fatal
endif
ifstr(i) $($R1) == {}
set Error = $(CANNOT_FIND_ANY_CARD)
set CommonStatus = STATUS_USERCANCEL
set from = "end"
goto nonfatal
endif
set AdapterList = $($R1)
endif
ifint $(OldVersionExisted) == $(TRUE)
ifstr(i) $(!NTN_InstallMode) == configure
goto writeparameters
endif
endif
StartWait
Ifint $(OldVersionExisted) != $(FALSE)
Goto installhardware
Endif
ifstr(i) $(!NTN_InstallMode) == "install"
Ifstr(i) $(DoCopy) == "YES"
Ifstr(i) $(SrcDir) == ""
read-syms AskSourceDlgText
Shell $(subroutineinf) DoAskSourceEx $(SrcDir) $(DlgText)
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto ShellCodeError
Else-Ifstr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
Endif
Endif
install "Install-Option"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
endif
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), +
$(ProductSoftwareName), +
$(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
$(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
$(NetEventDLL), ""
Set OEM_ABANDON_SOFTWARE = TRUE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNADUB.INF: Registry error: add software components"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
goto fatalregistry
endif
set SoftProductKey = $($R1)
Set SoftNetRuleKey = $($R2)
Set SoftServiceKey = $($R3)
Set SoftParameterKey = $($R4)
Set SoftLinkageKey = $($R5)
set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add value list."
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
goto fatalregistry
endif
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add value list."
goto fatalregistry
endif
;
; Insert hardware component in registry
;
installhardware =+
;
; As the MCA hardware installation operates on a list of adapters of
; adapters, this installation is handled separately.
;
ifstr(i) $(Option) == "OCE3XMMC"
ForListDo $(AdapterList)
set BusNum = *($($),1)
set SlotNum = *($($),2)
Debug-Output $(BusNum)
Debug-Output $(SlotNum)
;
; See if this device is already present
;
Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
$(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto fatal
endif
;
; If device was not present then do the hardware installation
;
ifstr(i) $($R1) != "YES"
Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
ifint $($R4) != -1
Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Cannot add hardware component"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add hardware component"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
goto fatalregistry
endif
set KeyProduct = $($R1)
set KeyAdapterRules = $($R2)
set KeyParameters = $($R3)
set AdapterNumber = $($R4)
set AdapterServiceName = $($R5)
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
endif
CloseRegKey $(KeyProduct)
Set KeyProduct = ""
set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
CloseRegKey $(KeyAdapterRules)
set SpeedValue = *($(SpeedValues), ~($(SpeedList),$(SpeedIndex)))
ifstr $(NetworkAddress) != ""
set NewValueList = >($(NewValueList),{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)})
endif
set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),3},+
{McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
{Speed,$(NoTitle),$(!REG_VT_DWORD),$(SpeedValue)},+
{Duplex,$(NoTitle),$(!REG_VT_SZ),$(DuplexValue)}}
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
CloseRegKey $(KeyParameters)
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add value list."
goto fatalregistry
endif
endif
EndForListDo
else
;
; This section is the ISA hardware installation
;
Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
ifint $($R4) != -1
Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Cannot add hardware component"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add hardware component"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
goto fatalregistry
endif
set KeyProduct = $($R1)
set KeyAdapterRules = $($R2)
set KeyParameters = $($R3)
set AdapterNumber = $($R4)
set AdapterServiceName = $($R5)
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
CloseRegKey $(KeyProduct)
Set KeyProduct = ""
set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
CloseRegKey $(KeyAdapterRules)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add value list."
CloseRegKey $(KeyParameters)
goto fatalregistry
endif
endif
;
; Write Adapter Parameters to registry
;
writeparameters = +
set DoWrite = NO
ifstr(i) $(Option) == "OCE3XM"
;
; Prepare writing parameters for ISA adapter
;
; Shell $(UtilityInf), GetBusTypeNum
; set BusTypeNum = $($R1)
; ifint $($ShellCode) != $(!SHELL_CODE_OK)
; Debug-Output "ShellCode error."
; goto ShellCodeError
; endif
Ifstr(i) $(KeyParameters) == $(KeyNull)
Debug-Output "*** KeyParameters is NULL at writeparameters"
Endif
;
; Convert selections from combo-lists and radio-buttons into actual
; parameter values
;
set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
set BusNoValue = *($(BusNoValues), ~($(BusNoList),$(BusNoIndex)))
set SpeedValue = *($(SpeedValues), ~($(SpeedList),$(SpeedIndex)))
;
; Set up parameter list for AddValueList routine
;
set NewValueList = {{IoBase,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)},+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),1},+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNoValue)},+
{Speed,$(NoTitle),$(!REG_VT_DWORD),$(SpeedValue)},+
{Duplex,$(NoTitle),$(!REG_VT_SZ),$(DuplexValue)}}
set DoWrite = YES
else-ifstr(i) $(!NTN_InstallMode) == "Configure"
;
; This section applies to MCA adapters only.
; (if we are running the Install option these parameters has
; already been written).
;
;
; Convert selections from combo-lists and radio-buttons into actual
; parameter values
;
set SpeedValue = *($(SpeedValues), ~($(SpeedList),$(SpeedIndex)))
;
; Set up parameter list for AddValueList routine
;
set NewValueList = {{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
{Speed,$(NoTitle),$(!REG_VT_DWORD),$(SpeedValue)},+
{Duplex,$(NoTitle),$(!REG_VT_SZ),$(DuplexValue)}}
set DoWrite = YES
endif
ifstr(i) $(DoWrite) == YES
ifstr $(NetworkAddress) != ""
set NewValueList = >($(NewValueList),{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)})
endif
;
; Now update registry
;
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
endif
;
; If the network address has been deleted then also delete it from
; the registry.
;
ifstr $(OldNetAddress) != ""
ifstr $(NetworkAddress) == ""
DeleteRegValue $(KeyParameters) NetworkAddress
endif
endif
CloseRegKey $(KeyParameters)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output "Registry error: Add value list"
goto fatalregistry
endif
endif
EndWait
goto successful
bindingadapter =+
set Error = "Binding: Sorry, not yet implemented."
goto fatal
;-----------------------------------------------
; Remove Adapter Section
;-----------------------------------------------
;
; Remove all adapter information from the registry
;
removeadapter = +
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
else
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $(!NTN_RegBase)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
goto end
UpgradeSoftware = +
ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
set Version = *($(VersionInfo), 4)
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set !UG_Filename = $($R0)
ifstr(i) $(!UG_Filename) != ""
install "Install-Update"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
endif
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
ifint $(Version) != $(ProductVersion)
endif
CloseRegKey $(KeyProduct)
else
goto fatalregistry
endif
else
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
$(MAXIMUM_ALLOWED) NetworkCardKey
Ifstr(i) $(NetworkCardKey) != $(KeyNull)
GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
set ServiceName = *($(ServiceNameInfo), 4)
OpenRegKey $(NetworkCardKey) "" "NetRules" +
$(MAXIMUM_ALLOWED) NetRuleKey
Ifstr(i) $(NetRuleKey) != $(KeyNull)
else
CloseRegKey $(NetworkCardKey)
goto fatalregistry
endif
CloseRegKey $(NetRules)
CloseRegKey $(NetworkCardKey)
else
goto fatalregistry
endif
OpenRegKey $(!REG_H_LOCAL) "" +
$(!NTN_ServiceBase)"\"$(ServiceName) +
$(MAXIMUM_ALLOWED) ServiceKey
Ifstr(i) $(ServiceKey) != $(KeyNull)
CloseRegKey $(ServiceKey)
else
goto fatalregistry
endif
endif
goto end
successful = +
goto end
abandon = +
ForListDo $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $($)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
EndForListDo
Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), FALSE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
goto end
warning = +
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(to)
else-ifstr(i) $($R1) == "CANCEL"
goto $(from)
else
goto "end"
endif
nonfatalinfo = +
Set Severity = STATUS
Set CommonStatus = STATUS_USERCANCEL
goto nonfatalmsg
nonfatal = +
Set Severity = NONFATAL
goto nonfatalmsg
nonfatalmsg = +
ifstr(i) $(Error) == ""
Set Severity = NONFATAL
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(from)
else
goto "end"
endif
fatalregistry = +
Shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) WARNING "Fatal Error"
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
fatal = +
ifstr(i) $(Error) == ""
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto setfailed
ShellCodeError = +
set DlgType = "MessageBox"
set STF_MB_TITLE = "Error: "$(FunctionTitle)
set STF_MB_TEXT = "Shell Code Error"
set STF_MB_TYPE = 1
set STF_MB_ICON = 3
set STF_MB_DEF = 1
ui start "Error Message"
goto setfailed
setfailed = +
set CommonStatus = STATUS_FAILED
ifstr(i) $(OEM_ABANDON_ON) == TRUE
set OEM_ABANDON_ON = FALSE
goto abandon
endif
goto end
end = +
goto term
term = +
Return $(CommonStatus)
[Install-Option]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
endif
Debug-Output "OEMSETNT.INF: [Install-Option] DoCopy = "$(DoCopy)
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-Update]
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[Install-Dll]
set STF_VITAL = ""
;ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
;endif
; ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
;endif
exit
[Source Media Descriptions]
; 1 = "Olicom Ethernet Driver Disk"
1 = "Windows NT DRVLIB"
[Signature]
FileType = MICROSOFT_DRVLIB_FILE
[GetSignature]
read-syms Signature
return $(FileType)
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
[Files-Inf]
1, oemsetup.inf, SIZE=999, RENAME=$(!UG_Filename)
[Files-OCE3XM]
1, OCE3XM.SYS, SIZE=999
[Files-OCE3XMMC]
1, OCE3XM.SYS, SIZE=999
[Files-Dll]
1, oce3xm.dll, SIZE=999
1, oce3xm.hlp, SIZE=999
[Files-dummy]